package com.mes.system.controller;

import com.mes.common.pojo.MESResult;
import com.mes.system.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 张喆
 * @Company
 * @Description
 * @Time 2024/10/15 15:07
 */
@RestController
@RequestMapping("/menu")
@CrossOrigin
public class MenuController {
    @Autowired
    private MenuService menuService;
    @GetMapping("/list")
    public MESResult list(){
        return menuService.queryMenus();
    }
}
